package com.leyou.common.enums;

import lombok.Getter;

@Getter
public enum ExceptionEnum {
    PRICE_CANNOT_BE_NULL(400, "价格不能为空！"),
    CATEGORY_NOT_FOND(204,"抱歉未找到相应的分类信息"),
    DATA_TRANSFER_ERROR(500,"数据转换异常"),
    INSERT_OPERATION_FAIL(500,"数据保存失败"),
    INVALID_FILE_TYPE(500,"文件类型不匹配，请传输正确的类型文件"),
    FILE_UPLOAD_ERROR(500,"文件保存失败请重试"),
    BRAND_NOT_FOND(204,"抱歉未找到相应的品牌信息");
    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public int getStatus() {
        return status;
    }
}